import { genMessage } from '../helper'
import antdLocale from 'ant-design-vue/es/locale/zh_CN'
// import { deepMerge } from '@/utils'

const modules = import.meta.glob('./zh_CN/**/*.{json,ts,js}', { eager: true })

export default {
  message: {
    ...genMessage(modules as Recordable<Recordable>, 'zh_CN'),
    antdLocale
    // antdLocale: {
    //   ...antdLocale,
    //   DatePicker: deepMerge(
    //     antdLocale.DatePicker,
    //     genMessage(modules as Recordable<Recordable>, 'zh-CN').antdLocale.DatePicker
    //   )
    // }
  }
}